<div class="flash">
		<div class="body_flash">
						
			<div id="msg_slideshow" class="msg_slideshow">
			
			<?php 
$args = null;
$num_post		= 6;
$post_type		= 'slide-show'; 
$orderby		= 'date';
$order			= 'DESC';
$meta_key		= $wpdb->prefix.'display';
$meta_value		= 'display';
$args = db_query_all_post_in_post_type($num_post, $post_type, $orderby, $order, $meta_key, $meta_value);					
$query = new WP_Query($args);
?>

<div id="slideshowtop">				
				<ul class="rslides rslides2">					  
	             <?php                     
                    if($query->have_posts())
                    {
                    	while ($query->have_posts())
                    	{
                    		$query->the_post();
                    		$post_id = get_the_ID();
                    		$title = get_the_title($post_id);
                    		$myurl = get_post_meta($post_id, $wpdb->prefix.'url',true);
                    		$thumbnail = db_get_post_meta($post_id, $wpdb->prefix.'thumbnail');
                    		$alt = db_get_alt_attachment_id($post_id, $wpdb->prefix.'thumbnail');
                    		if(!$alt)
                    			$alt = db_vietnamese_slug($title);
                    		?>
                    		
                    		<li>
	                    		<a href="<?php echo $myurl?>">
	                    			<img src="<?php echo $thumbnail;?>" alt="<?php echo $alt;?>" />
	                    		</a>
				                  <!-- 
				                  <div class="textslidetop">
				                  	<p><a href="<?php echo $myurl;?>"><?php echo $title;?></a></p>                  
				                  </div>
				                  <div class="bgslidetop"></div>
				                   -->
		                   </li>
                    		
                    		<?php 	
                    	}
                    	wp_reset_query();
                    }                    
                    ?>      
					  
				</ul>					
		</div>
			  
			  
			</div>
		</div>
		<!-- end flash -->
		<div class="bottom_shadow_flash"></div>
	</div>